function fnRequest(param) {
    uexXmlHttpMgr.open(1, "get", "http://192.168.97.160:3000" + param, "0");
    uexXmlHttpMgr.send(1);
}

var newTimerParams = function(identifier, cbName, times, interval) {
    var data = {
        id : identifier,
        callbackName : cbName,
        repeatTimes : times,
        timeInterval : interval
    };
    var params = JSON.stringify(data);
    return params;
}

uexBackground.cb1 = function(count) {
    fnRequest("?count=" + count);
}

uexBackground.onLoad = function() {
    try {
        fnRequest("?Msg=Start...");
        var result = uexBackground.addTimer(newTimerParams("timer1", "cb1", 30, 1000));
        fnRequest("?result=" + result);
    } catch(e) {
        fnRequest("?e=" + e);
    }
}
